//
//  RootViewController_iPad.m
//  PriceOnline
//
//  Created by Le Anh Tai on 8/3/13.
//  Copyright (c) 2013 Le Anh Tai. All rights reserved.
//

#import "RootViewController_iPad.h"
#import "Reachability.h"
#import "AdGADBanner_iPad.h"
#import "AdiAdBanner_iPad.h"
#import "HomeViewController_iPad.h"

#define PADDING 10

@interface RootViewController_iPad ()

@end

@implementation RootViewController_iPad

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
//    _chartController = [[ChartViewController alloc] initWithNibName:@"ChartViewController" bundle:nil];
//    [self.view addSubview:_chartController.view];

    //goldPrice view    
    
    [self.view setBackgroundColor:[UIColor whiteColor]];
}

- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
}

- (void)viewDidLayoutSubviews
{
    [super viewDidLayoutSubviews];
    
    [self layoutSubviews];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - Rotation methods
// This method was deprecated in iOS 6
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Overriden to allow any orientation.
    return YES;
}

#pragma mark - Orientation in iOS 6.0
// Apple replaced shouldAutorotateToInterfaceOrientation method with 02 other methods: supportedInterfaceOrientations, shouldAutorotate
- (NSUInteger)supportedInterfaceOrientations
{
    return UIInterfaceOrientationMaskAll;
}

- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
{
    [self layoutSubviews];
}

#pragma mark -
@end
